#!/bin/bash

war_name=$(basename app-*.war)

processId=$(pgrep -f "$war_name")

if [ "$processId" ]; then
    kill -9 "$processId"
    echo "kill existed process success"
fi
